<?php
//print _dump($node);
?>

<script src="<?php print url(path_to_theme() . '/mocarousel.js', array('absolute' => true)); ?>" type="text/javascript">
</script>
<div id="mocarousel">
  <div class="prev">  </div>
  <ul class="mocarousel-list">
    <?php
    foreach ($node->field_gal_imgs as $id => $img) { ?>
      <li rel="<?php print $id; ?>" >
        <div class="inner-element">
          <?php print theme('imagecache', 'gallery_455x360', $img['filepath']); ?>
          <div class="overlay image">
            <div class="title">
              <?php print 'Titre Image ' . $id; ?>
            </div>
            <div class="subtitle">
              <?php print 'Sous-titre Image ' . $id; ?>
            </div>
          </div>
        </div>
      </li>
    <?php
    }
    ?>
  </ul>
  <div class="next">  </div>
</div>


<script type="text/javascript">
  gallery.init();
</script>